<template>
    <transition name="slider">
        <div class="account-safe">
            <m-header :canreturn=true :titleText="titleText"></m-header>
            <div class="account-box">
                <router-link class="account-item" to="/mine/accountsafe/password" tag="div">
                    <p>账号安全</p>
                    <div class="right">
                        <div class="arrow"></div>
                    </div>
                </router-link>
            </div>
            <router-view></router-view>
        </div>
    </transition>
</template>

<script type="text/ecmascript-6">
import MHeader from '@/components/m-header/m-header';

export default {
    data() {
        return {
            titleText: '账号安全',
        };
    },
    components: {
        MHeader,
    },
};
</script>

<style scoped lang="stylus" rel="stylesheet/stylus">
@import '~common/stylus/variable';
@import '~common/stylus/mixin';

slider();

.account-safe {
    position: fixed;
    width: 100%;
    top: 0;
    bottom: 0;
    background: #ffffff;

    .account-box {
        .account-item {
            height: 60px;
            border-bottom: 1px solid #eeeeee;
            display: flex;
            align-items: center;
            padding: 0 15px;
            position: relative;

            .right {
                position: absolute;
                right: 15px;
                display: flex;
                height: 100%;
                align-items: center;

                .arrow {
                    width: 9px;
                    height: 16px;
                    bg-image('rightArrow');
                    background-size: 9px 16px;
                    margin-left: 10px;
                }
            }
        }
    }
}
</style>

